<template>

    <div id="app">
      <transition>
        <router-view v-if="isRouterAlive" />
      </transition>
    </div>


</template>
<script>
export default {
  name: "App",
  provide() {
    return {
      reload: this.reload
    };
  },
  data() {
    return {
      isRouterAlive: true
    };
  },

  methods: {
    reload() {
      this.isRouterAlive = false;
      this.$nextTick(function () {
        this.isRouterAlive = true;
      });
    }
  }
};
</script>

<style lang="less">
//去掉滚动条
::-webkit-scrollbar {
  width: 0 !important;
}

::-webkit-scrollbar {
  width: 0 !important;
  height: 0;
}
*{
  margin: 0;
}
#app{
  height: 100vh;
}


</style>
